TEMPLATE = lib
LANGUAGE = C++

CONFIG += qt warn_on
QT += core gui widgets

HEADERS += *.h
SOURCES += *.cpp
FORMS   += *.ui

PREFIX_PATH = ../../ndd108

INCLUDEPATH += $${PREFIX_PATH}/include
INCLUDEPATH += $${PREFIX_PATH}/qscint/src
INCLUDEPATH += $${PREFIX_PATH}/qscint/src/Qsci
INCLUDEPATH += $${PREFIX_PATH}/qscint/scintilla/include

win32 {
   if(contains(QMAKE_HOST.arch, x86_64)){
    CONFIG(Debug, Debug|Release){
        DESTDIR = debug/x64/plugin
        LIBS += -L$${PREFIX_PATH}/x64/Debug
        LIBS += -lqmyedit_qt5d
    }else{
        DESTDIR = release/x64/plugin
        LIBS += -L$${PREFIX_PATH}/x64/Release
        LIBS += -lqmyedit_qt5
    }
   }
}
unix {
   if(contains(QMAKE_HOST.arch, x86_64)){
    CONFIG(Debug, Debug|Release){
        DESTDIR = $${PREFIX_PATH}/x64/Debug/plugin
                LIBS += -L$${PREFIX_PATH}/x64/Debug
                LIBS += -lqmyedit_qt5d
    }else{
        DESTDIR = $${PREFIX_PATH}/x64/Release/plugin
                LIBS += -L$${PREFIX_PATH}/x64/Release
                LIBS += -lqmyedit_qt5
    }
   }
}

unix {
  UI_DIR = .ui
  MOC_DIR = .moc
  OBJECTS_DIR = .obj
}
